package test;

public class test04_Operator2 {
    public static void main(String[] args) {
        //TODO 运算符-赋值运算符
        String name="zhangsan";
        byte e=10;
        short r=e;
        int t=r;
        System.out.println(e);//10
        System.out.println(r);//10
        System.out.println(t);//10

        //TODO 复合赋值运算符
        int i=10;
        i=i++;
        i*=2;
        System.out.println(i);//20
        i+=2;
        System.out.println(i);//22
        i/=2;
        System.out.println(i);//11
        i-=8;
        System.out.println(i);//3
        i%=2;
        System.out.println(i);//1

        //TODO 关系运算符:== != >= > <= <
        int j=10;
        int n=30;
        System.out.println(j==n);//false
        System.out.println(j!=i);//true
        System.out.println(j>=n);//false
        System.out.println(j<=n);//true
        System.out.println(j>n);//假
        System.out.println(j<n);//真














    }
}
